package com.dec.exception;

public class GlobalExceptionResolver implements Thread.UncaughtExceptionHandler {


    @Override
    public void uncaughtException(Thread t, Throwable e) {

    }

    public void setDefaultUnCachExceptionHandler() { //在Application开始时调用
        Thread.setDefaultUncaughtExceptionHandler(this); //设置应用默认的全局捕获异常器
    }
}
